/**
 * Copyright(C): CETC-32
 * @Description: 用户管理接口
 * @author: youqing
 * @version: 1.0
 * @date: 2020/9/11 10:55
 * 更改描述：
 */
package com.cetc32.dh.service;

import com.cetc32.dh.common.response.PageDataResult;
import com.cetc32.dh.dto.UserSearchDTO;
import com.cetc32.dh.entity.BaseAdminUser;
import java.util.Map;

/**
 * @Title: AdminUserService
 * @Description:
 * @author: youqing
 * @version: 1.0
 * @date: 2020/11/21 11:04
 */
public interface AdminUserService {

    PageDataResult getUserList(UserSearchDTO userSearch, Integer pageNum, Integer pageSize);

    Map<String,Object> addUser(BaseAdminUser user);

    Map<String,Object> updateUser(BaseAdminUser user);

    BaseAdminUser getUserById(Integer id);

    BaseAdminUser findByUserName(String userName);

    int updatePwd(String userName, String password);

    Map<String, Object> delUser(Integer id, Integer status);

    Map<String, Object> recoverUser(Integer id, Integer status);

    PageDataResult getUserRole(Integer roleId,Integer pageNum, Integer pageSize);
}
